package com.ewo.service.impl.ApplicationPage;

import com.ewo.entity.ApplicationPage.CustomerEquipment;
import com.ewo.entity.ApplicationPage.CustomerInformation;
import com.ewo.entity.ApplicationPage.CustomerProject;
import com.ewo.mapper.CustomerInformationMapper;
import com.ewo.mapper.CustomerProjectMapper;
import com.ewo.service.ApplicationPage.CustomerInformationService;
import com.ewo.service.ApplicationPage.CustomerProjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CustomerProjectServiceImpl implements CustomerProjectService {
    @Resource
    CustomerProjectMapper customerProjectMapper;
    //根据员工id查找关联项目
    public List<CustomerProject> findCustomerProjectByEmpId(int empId){
        return customerProjectMapper.findCustomerProjectByEmpId(empId);
    }

    //根据客户id查找关联项目信息
    public CustomerProject findCustomerProjectByCid(int cid){
        return customerProjectMapper.findCustomerProjectByCid(cid);
    }
}
